package spring.bean.factory;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception {
		/*Properties pro = new Properties();
		pro.load(Test.class.getResourceAsStream("spring.properties"));
		Moveable m = (Moveable)Class.forName(pro.get("VehicleType").toString()).newInstance();
		m.run();*/
		org.springframework.beans.factory.BeanFactory bf = new ClassPathXmlApplicationContext("applicationContext.xml");
		Moveable m = (Moveable)bf.getBean("train");
		m.run();

	}

}
